home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
TUTORIAL
/
1307B.ZIP
/
PROCED1.MOD
< prev
next >
Wrap
Text File
|
1989-01-18
|
848b
|
51 lines
(* Chapter 5 - Program 1 *)
MODULE Proced1;
FROM InOut IMPORT WriteString, WriteLn;
VAR Count : INTEGER;
PROCEDURE WriteHeader;
BEGIN
WriteString("This is the header");
WriteLn;
END WriteHeader;
PROCEDURE WriteMessage;
BEGIN
WriteString("This is the message");
WriteLn;
END WriteMessage;
PROCEDURE WriteEnding;
BEGIN
WriteString("This is the end");
WriteLn;
END WriteEnding;
BEGIN (* Main program *)
WriteHeader;
FOR Count := 1 TO 8 DO
WriteMessage;
END;
WriteEnding;
END Proced1.
(* Result of execution
This is the header
This is the message
This is the message
This is the message
This is the message
This is the message
This is the message
This is the message
This is the message
This is the end
*)